import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 适配移动端 750 尺寸
import '@/assets/js/adaptation.js'
import VueAMap from 'vue-amap'
Vue.use(VueAMap)
// import BaiduMap from 'vue-baidu-map'
// Vue.use(BaiduMap, {
//   // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
//   ak: 'd4dC6wLlG0gc2XND7U7qvSdWC9r3RlQi'
// })
// Vant 开源移动端组件库
import Vant from 'vant'
import 'vant/lib/index.css'

// 路由钩子函数 获取用户信息功能
import './router/routing'
// 自定义全局样式（禁止随意修改）
import '@/assets/base/global.less'
import '@/assets/css/public.less'
import common from '@/libs/common'

Vue.use(Vant)

// 挂载公共函数工具类
Vue.prototype.$common = common;

VueAMap.initAMapApiLoader({
  key: '27c66f5b8b8179f0267de81571def171',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor', 'Geocoder',
    'AMap.MarkerClusterer','AMap.Heatmap'],
  // 默认高德 sdk 版本为 1.4.4
  uiVersion: '1.0',
  v: '1.4.4'
})

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
